package com.sdy.supermarket.biz.mapper;

import com.sdy.supermarket.biz.model.GsAppIpApply;
import com.sdy.mvc.mapper.BaseMapper;
import com.sdy.supermarket.biz.param.IpApplyListParam;
import com.sdy.supermarket.biz.vo.IpApplyListVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zzq
 * @since 2019-08-01
 */
public interface GsAppIpApplyMapper extends BaseMapper<GsAppIpApply> {

    /**
     * 用户查询IP修改申请单列表,如果传入了ipOrderIdList则根据ID列表来查
     *
     * @param param
     * @return
     */
    List<IpApplyListVo> getUserIpApplyList(IpApplyListParam param);

    /**
     * 获取总条数
     *
     * @param map  (userId,name,ip,state)
     * @return
     */
    int getUserIpApplyListTotal(Map<String, Object> map);


    /**
     * 批量更新订单状态
     *
     * @param list
     * @return
     */
    int batchUpdate(List<GsAppIpApply> list);

}
